package com.springcloud.utils;

import java.util.HashSet;
import java.util.Set;

public class ConstantUtil {

    public static class ExeState {
        public static final String EXE_SUCCESS = "Y";
        public static final String EXE_FAIL = "N";
    }

    public static class ExeStateString {
        public static final String STRING_SUCCESS = "操作成功";
        public static final String STRING_FAIL = "操作失败";
        public static final String STRING_DEFAULT = "";
    }


    public static class OperateType {
        public static final String IMPORT = "E";
        public static final String EXPORT = "A";
        public static final String XPORT = "X";//移库

    }

    private static Set<String> setOperateType = new HashSet<>();

    public static Set<String> getOperateTypeSet() {
        if (setOperateType.size() < 1) {
            setOperateType.add(OperateType.IMPORT);
            setOperateType.add(OperateType.EXPORT);
        }
        return setOperateType;
    }

    public static class Task{
        public static final String TASKNO="taskNo";
        public static final String OPERATETYPE="operateType";
    }

    public static class TaskModel {
        public static final String LOCAL = "local";
        public static final String REMOTE = "WMS";
    }

    public static class TaskState {
        public static final String CREATED = "0";
        public static final String SEND = "1";
        public static final String CANCELLED = "2";
        public static final String PARTIALLY_DONE = "3";
        public static final String DONE = "4";
        public static final String DELETED = "5";
    }

    public static class TaskStateString {
        public static final String CREATED = "已创建";
        public static final String SEND = "已下传";
        public static final String CANCELLED = "已取消";
        public static final String PARTIALLY_DONE = "部分完成";
        public static final String DONE = "已完成";
        public static final String Deleted = "已删除";
    }


}
